import { lazy } from "react";
//创建一个路由表
const routes = [
    {
        path: "/",
        redirect: "/home",
    },
    {
        path: "/home",
        element: lazy(() => import("../views/Home/Home"))
    },
    {
        path: "/main",
        element: lazy(() => import("../views/Main/Main"))
    }
]
export default routes